{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=1430
  Verdict: Accepted
}
uses SysUtils, Math;
 
var
	i,n:longint;
	k,t:int64;
 
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
read(n);
k:=1;
t:=0;
for i:=1 to n do begin
	write(k,' ');
	inc(t);
	if t=k then begin
		inc(k);
		t:=0;
	end;
end;
end.